package com.eshin.validatetor;

import org.springframework.stereotype.Component;

@Component
public class OrderTypeValidator implements Validator<OrderBean> {

	@Override
	public void validate(OrderBean orderBean) {
		System.out.println("order type:"+orderBean.getType());
	}

}
